<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>隆基新能源</title>
    <link rel="stylesheet" href="../css/H-ui.reset.css">
    <link rel="stylesheet" href="../css/H-ui.min.css">
    <link rel="stylesheet" href="../css/H-ui.ie.css">
    <link rel="stylesheet" href="../css/page-css/index.css">
</head>

<body>
    <div class="long-ji-wapper long-ji-main">
        <div class="long-ji-common-header">
            <div class="long-ji-header-left">
                <div class="f-l">
                    <img src="../images/system/main-logo.png" alt="" class="ml-20">
                </div>
                <div class="f-l mt-30">
                    <img src="../images/system/main-name.png" class="w-200 ml-20" alt="">
                </div>
                <ul class="mt-20 nav-tree">
                    <li>
                        <a href="./page-home.html" target="myframe" class="long-ji-common-icon longji-home" style="width:88px;">
                            <i class="iconfont icon-shouye"></i>
                            首页</a>
                    </li>
                    <li>
                        <a href="javascript:;" class="long-ji-common-icon longji-website">
                                <i class="iconfont icon-zhandian"></i>
                            站点管理</a>
                        <dl class="nav-item">
                            <dd>
                                <a href="./page-website-info.html" target="myframe">站点信息</a>
                            </dd>
                            <dd>
                                <a href="./page-coordinate.html" target="myframe">站点坐标</a>
                            </dd>
                            <dd>
                                <a href="javascript:;" target="myframe">组织管理</a>
                            </dd>
                        </dl>
                    </li>
                    <li>
                        <a href="javascript:;" class="long-ji-common-icon longji-system">
                        <i class="iconfont icon-icon01"></i>
                            系统管理</a>
                        <dl class="nav-item">
                            <dd>
                                <a href="./page-role.html" target="myframe">角色管理</a>
                            </dd>
                            <dd>
                                    <a href="./page-person-mange.html" target="myframe">人员管理</a>
                            </dd>
                            <dd>
                                    <a href="./page-language.html" target="myframe">多语言管理</a>
                            </dd>
                            <dd>
                                <a href="javascript:;">参数设置</a>
                            </dd>
                            <dd>
                                <a href="javascript:;">密码管理</a>
                            </dd>
                        </dl>
                    </li>
                    <li>
                        <a href="./page-log.html" target="myframe" class="long-ji-common-icon longji-log">
                            <i class="iconfont icon-rizhi"></i>
                            日志查看</a>
                    </li>
                    <li>
                        <a href="javascript:;" class="long-ji-common-icon longji-warn">
                                <i class="iconfont icon-icon-life-alarm"></i>
                            警告查看</a>
                    </li>
                </ul>
            </div>
            <div class="long-ji-header-right">
                <a href="javascript:;" class="btn btn-secondary-outline radius">中文</a>
                <a href="javascript:;" class="btn btn-secondary-outline radius">注销</a>
            </div>
        </div>
        <div class="long-ji-crumbs">
            系统容量:123千万，太阳能模块数:365
        </div>
        <div id="iframe_box" class="mt-20">
            <iframe name="myframe" id="iframe_box-tepl" src="./page-index.html" frameborder="0" scrolling="auto" width="100%" height="100%"></iframe>
        </div>
    </div>
    <script src="https://cdn.bootcss.com/jquery/3.2.0/jquery.min.js"></script>
    <script>
        $(function () {
            setWindowHeight();
            function setWindowHeight() {
                var height = $(window).height();
                var width = $(window).width();
                $('#iframe_box-tepl').css({
                    height: height - 160,
                    overflow: 'auto'
                })
            }
            $(window).resize(function () {
                setWindowHeight();
            })
            $('.nav-tree li').mouseenter(function () {
                var isDl = $(this).find('.nav-item')[0];
                if (isDl) {
                    if ($(this).find('.nav-item').css('display') === 'block') {
                        console.log(1);
                        $(this).find('.nav-item').hide();
                    } else {
                        console.log(2);
                        $(this).find('.nav-item').show();
                    }
                } 
            })
            $('.nav-tree li').mouseleave(function () {
                $('.nav-item').hide();
            })

          
        })


    </script>
</body>

</html>